<style type="text/css">
#menuDemo li .a { word-spacing: 32px; color: #FF00FF; }
</style>
<script type="text/javascript">
$(function(){
	var mu = $('#menuDemo').mac('menu', {
		children: [{
			title : 'Auto width, support EN/CN',
			action : 'itemA',
			icon: 'icon-newwin'
		},{
			title : 'This item has submenu',
			icon: 'icon-newwin',
			children: [{
				title : 'No icon',
				action : 'itemB1'
			},{
				title : 'Can change CSS',
				action : 'itemB2',
				style: 'a',
				icon: 'icon-newwin'
			}]
		}]
	});
	$('#demo').contextMenu({
		menu : mu,
		button: 3,//3: right click, 1: left click
		onPopup : function(el) {
			//onPopup event
		},
		//location: 'mouse',
		offset: { x: 0, y: 0 }
	}, function(action, el, pos) {
		alert(action);
		return false;
	});
});
</script>
Please <b>Right Click</b> on this panel.
<ul id="menuDemo" class="contextMenu"></ul>